package com.manulife.hk.performance.repository;


import com.manulife.hk.performance.domains.SubmitSaleEntity;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import org.springframework.stereotype.Repository;

@Repository
@RepositoryRestResource(collectionResourceRel = "submit_sale", path = "submit_sale")
public interface SubmitSaleRepository extends PagingAndSortingRepository<SubmitSaleEntity, Long>,
        JpaSpecificationExecutor<SubmitSaleEntity> {

	SubmitSaleEntity findBySubmitSalesKeyAndSubmitSalesSubKey(String submitSalesKey, String submitSalesSubKey);

	List<SubmitSaleEntity> findBySubmitSalesKey(String submitSalesKey);
}
